{% block operation %}


<label class="col-sm-2 col-lg-2 control-label" for="id_categoria" >Categoria:</label>
<div class="col-sm-5 col-lg-5">
    <select style="height:40px;width:200px;" id="id_categoria" name="id_categoria" >
        <option value=""></option>
        {% for t in pageData['daos'] %}
                <option value="{{t.id}}" >{{t.denominazione}}</option>
        {% endfor %}
    </select>
</div><br><br><br>
<div class="rilevazioni_da_ordinare"></div>

{%endblock%}
{% block custom_js %}
<script type="text/javascript">
$(document).ready(function () {
$(".Preview").hide()
$("a#anteprima").hide()
//$(".Edit_dao").hide()

$("#id_categoria").change(function() {
    id = $(this).val()
    $('.rilevazioni_da_ordinare').load("/pg/ac_Rilevazioni/rilevazionidaordinare",{ "id":id });
  });




$( "#sortable").sortable();

$("#salva").click( function(e){
        var sortedIDs = $( "#sortable" ).sortable( "toArray" );
        $("#ordine").val(sortedIDs)
        $("#ae_form").submit()
});

});
</script>
{% endblock %}
